package com.supersonic.backend.model;

import java.util.Map;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@Entity
public class AcquaintedDeliver extends BaseModel {
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private CommonUser cuser;
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private Deliver deliver;
	
	private String remark;
	
	@OneToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private PriceTable priceTable;

	/**
	 * @return the cuser
	 */
	public CommonUser getCuser() {
		return cuser;
	}

	/**
	 * @param cuser the cuser to set
	 */
	public void setCuser(CommonUser cuser) {
		this.cuser = cuser;
	}

	/**
	 * @return the deliver
	 */
	public Deliver getDeliver() {
		return deliver;
	}

	/**
	 * @param deliver the deliver to set
	 */
	public void setDeliver(Deliver deliver) {
		this.deliver = deliver;
	}

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the priceTable
	 */
	public PriceTable getPriceTable() {
		return priceTable;
	}

	/**
	 * @param priceTable the priceTable to set
	 */
	public void setPriceTable(PriceTable priceTable) {
		this.priceTable = priceTable;
	}
}
